package com.lizardmind.haofudoctor.ui.diagnosis.visit.userFill

import android.databinding.Observable
import android.databinding.ObservableArrayList
import android.databinding.ObservableField
import android.databinding.ObservableInt
import android.view.View
import com.linxiao.framework.viewModel.LifecycleViewModel
import com.lizardmind.haofudoctor.R
import com.lizardmind.haofudoctor.other.VisitBean
import com.luck.picture.lib.entity.LocalMedia

/**
 *  填写问诊单第一个界面的viewmodel
 * Created by Extends on 2017/11/10 15:57
 */
class FillVisitVM : LifecycleViewModel() {
    var bean = ObservableField<VisitBean>(null)
    var evaluation_status = ObservableInt(0)
    var select = ObservableInt(0)
    var tongue_picture = ObservableArrayList<LocalMedia>()
    val defImg = R.mipmap.camera
    var improved = ObservableField<String>("")//已改善方面
    var improved_not = ObservableField<String>("")//未改善方面
    var new_symptoms = ObservableField<String>("")//新增症状

    public fun changeSelect(i:Int ){
        select.set(i)
    }

    fun updateBean(b:VisitBean){
        bean.set(b)
        evaluation_status.set(b.evaluation_status)
    }

}